package com.woniu.service.impl;

import com.woniu.dao.UserDao;
import com.woniu.service.UserService;

import java.util.List;
import java.util.Map;

/**
 * @author:陈涵
 * @Do:service实现类,需要调用dao层
 * @date: 2022/8/24 11:08
 */
public class UserServiceImpl implements UserService {
    //如何给这个属性复制？setter注入
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<Map<String, String>> findAll() {
        return userDao.findAll();
    }
}
